package com.dinghui.pay.dao;

import com.dinghui.pay.pojo.TbOrder;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.ArrayList;
import java.util.HashMap;

//@Repository
@Mapper
public interface TbOrderMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(TbOrder record);

    int insertSelective(TbOrder record);

    TbOrder selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(TbOrder record);

    int updateByPrimaryKey(TbOrder record);

    /**
     * 查询用户订单
     */
    ArrayList<TbOrder> getUserOrderList(HashMap map);

    int selectCount(TbOrder order);

    TbOrder selectOne(TbOrder order);


    int updateOrderStatus(TbOrder order);
}